﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Agile.Manager.Hub;

namespace Agile.Manager.UI.Windows
{
    /// <summary>
    /// Interaction logic for TaskWindow.xaml
    /// </summary>
    public partial class TaskWindow : Window
    {
        public TaskWindow()
        {
            InitializeComponent();

            TaskHub.TaskEditDetailInfo += new EventHandler(TaskHub_TaskEditDetailInfo);
        }

        TaskDetailInfoWindow tDIW;

        void TaskHub_TaskEditDetailInfo(object sender, EventArgs e)
        {
            tDIW = new TaskDetailInfoWindow();
            tDIW.Closed += new EventHandler(tDIW_Closed);
            tDIW.Show();
        }

        void tDIW_Closed(object sender, EventArgs e)
        {
            this.Activate();
        }
    }
}
